package com.zxw.web;

import com.alibaba.fastjson.JSONObject;
import com.zxw.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.Cursor;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ScanOptions;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.PostConstruct;
import java.util.*;

/**
 * @author zxw
 * @date 2021-01-11 11:10
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    private UserService userService;
//    @Autowired
//    private RedisTemplate jsonRedisTemplate;


    @GetMapping
    public String test() {
        userService.addUser();
        return "这是服务provider01";
    }

}
